package net.pzc.filechooser;

import java.awt.image.BufferedImage;
import java.util.Vector;

public class FileItem implements IRowData {
	private String sysDisplayName;
	private String absolutePath;
	private String name;
	private BufferedImage icon;
	private String size;
	private String type;
	private String updDatetime;

	private int step;

	public String getSysDisplayName() {
		return sysDisplayName;
	}

	public void setSysDisplayName(String sysDisplayName) {
		this.sysDisplayName = sysDisplayName;
	}

	public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BufferedImage getIcon() {
		return icon;
	}

	public void setIcon(BufferedImage icon) {
		this.icon = icon;
	}

	public int getStep() {
		return step;
	}

	public void setStep(int step) {
		this.step = step;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUpdDatetime() {
		return updDatetime;
	}

	public void setUpdDatetime(String updDatetime) {
		this.updDatetime = updDatetime;
	}

	@Override
	public String toString() {
		String ret = "FileItem:{";
		ret += "[absolutePath:" + absolutePath + "]";
		ret += ",[name:" + name + "]";
		ret += ",[sysDisplayName:" + sysDisplayName + "]";
		ret += ",[type:" + type + "]";
		ret += "}";
		return ret;
	}

	public Vector<Object> getRowVector() {
		Vector<Object> v = new Vector<Object>();
		v.add(icon);
		v.add(name);
		v.add(size);//size
		v.add(type);//type
		v.add(updDatetime);//datetime
		return v;
	}
}
